import request from '@/utils/request'

// 查询卦象字典列表
export function listDivination(query) {
  return request({
    url: '/system/divination/list',
    method: 'get',
    params: query
  })
}

// 查询卦象字典详细
export function getDivination(id) {
  return request({
    url: '/system/divination/' + id,
    method: 'get'
  })
}

// 查询卦象字典详细
export function getDivinationFprDid(dID) {
  return request({
    url: '/system/divination/dId/' + dID,
    method: 'get'
  })
}

// 新增卦象字典
export function addDivination(data) {
  return request({
    url: '/system/divination',
    method: 'post',
    data: data
  })
}

// 修改卦象字典
export function updateDivination(data) {
  return request({
    url: '/system/divination',
    method: 'put',
    data: data
  })
}

// 删除卦象字典
export function delDivination(id) {
  return request({
    url: '/system/divination/' + id,
    method: 'delete'
  })
}
